package com.hxx.day11;

import com.hxx.day11.domain.Book;
import com.hxx.day11.domain.Person;
import com.hxx.day11.mapper.BaseMapper;

public class TestDemo1 {
    public static void main(String[] args) throws Exception{
//        BaseMapper<Person> mapper = new BaseMapper<Person>();
//        Person person = new Person();
//        person.setName("张三");
//        person.setAge(18);
//        mapper.save(person);

        BaseMapper<Book> mapper = new BaseMapper<>();
        Book book = new Book("1001","张三","18.0");
        mapper.save(book);
    }

}























